package com.ws.service.impl;

import com.ws.bean.Images;
import com.ws.bean.vo.ImageVo;
import com.ws.mapper.ImageMapper;
import com.ws.service.ImageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class ImageServiceImpl implements ImageService {
    @Autowired
    ImageMapper imageMapper;

    @Override
    public int add(Images images) {
        return imageMapper.add(images);
    }

    @Override
    public ArrayList<Images> list(ImageVo imageVo) {
        return imageMapper.list(imageVo);
    }

    @Override
    public int delete(Integer imageId) {
        return imageMapper.delete(imageId);
    }

    @Override
    public List<Images> listById(Integer routeId) {
        return imageMapper.listById(routeId);
    }
}
